package pack3;

import org.w3c.dom.ls.LSOutput;
import zjy.Person;

public class test5 {
    public static void main(String[] args) {
        Person p1=new Person("郭靖","男",20);
        System.out.println(p1);
        Student s1=new Student("黄蓉","女",17,"1263001");
        System.out.println(s1);
        Undergraduate u1=new Undergraduate("黄飞鸿","男",23,"1892001","中国武术学");
        System.out.println(u1);
        Undergraduate u2=new Undergraduate("韦小宝","男",300,"1892001","中国武术学");
        Graduate g1=new Graduate("韦小宝","男",23,"1892001","中国武术学","拳击");
        System.out.println(g1);
    }
}

